package oj;

import java.util.Scanner;

public class Day10S {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String s = sc.nextLine();
            char[] arr = s.toCharArray();
            func(arr);
        }
    }
    public static void func(char[] arr){
            int sum=0;
            int num=0;//记录数字的数量
            int f=0;//记录符号的数量
            boolean haveUpper=false;
            boolean haveLower=false;
            boolean haveLetter=false;
            int len=arr.length;
            if(len<=4){
                sum+=5;
            }else if(len>=5 && len<=7){
                sum+=10;
            }else if(len>=8){
                sum+=25;
            }
            for (int i = 0; i < len; i++) {
                if(arr[i]>='A' &&arr[i]<='Z'){
                    haveUpper=true;
                }else if(arr[i]>='a' &&arr[i]<='z'){
                    haveLower=true;
                }else if(arr[i]>='0' && arr[i]<='9'){
                    num++;
                }else if ((arr[i] >= 0x21 && arr[i] <= 0x2F) ||
                        (arr[i] >= 0x3A && arr[i] <= 0x40) ||
                        (arr[i] >= 0x5B && arr[i] <= 0x60) ||
                        (arr[i] >= 0x7B &&arr[i] <= 0x7E)){
                    f++;
                }
            }
            if(!haveLower&&!haveUpper){
                sum+=0;
            } else if(haveUpper&&!haveLower||haveLower&&!haveUpper){
                haveLetter=true;
                sum+=10;
            }else if(haveLower&&haveUpper){
                sum+=20;
            }
            if(num==0){
                sum+=0;
            }else if(num==1){
                sum+=10;
            }else if(num>1){
                sum+=20;
            }
            if(f==0){
                sum+=0;
            }else if(f==1){
                sum+=10;
            }else if(f>1){
                sum+=25;
            }
            if(haveLetter&&num>=1&&f==0){
                sum+=2;
            }else if(haveLetter&&num>=1&&f>=1){
                sum+=3;
            }else if(num>=1&&haveLower&&haveUpper&&f>=1){
                sum+=5;
            }
            if(sum>=90){
                System.out.println("VERY_SECURE");
            }else if(sum>=80){
                System.out.println("SECURE");
            }else if(sum>=70){
                System.out.println("VERY_STRONG");
            }else if(sum>=60){
                System.out.println("STRONG");
            }else if(sum>=50){
                System.out.println("AVERAGE");
            }else if(sum>=25){
                System.out.println("WEAK");
            }else if(sum>=0){
                System.out.println("VERY_WEAK");
            }
        }
}
